import {defineConfig} from 'vitepress'

// https://vitepress.dev/reference/site-config
let config = defineConfig({
    title: "技术栈",
    description: "一个技术栈",
    head: [
        ['link', {rel: 'ico', href: '/img/favicon.ico'}]
    ],
    lastUpdated: true,
    themeConfig: {
        // https://vitepress.dev/reference/default-theme-config
        logo: '/img/logo.svg',
        nav: [
            {
                text: 'AI 应用体系',
                items: [
                    {text: 'AI', link: '/AI 应用体系/main'},
                    {text: 'NLP', link: '/AI 应用体系/ai-app-system'}
                ]
            },
            {
                text: 'python',
                items: [
                    {text: 'python', link: '/python/main'}
                ]
            },
            {
                text: 'java',
                items: [
                    {text: 'java', link: '/java/main'}
                ]
            },
            {
                text: 'web',
                items: [
                    {text: 'web', link: '/web/main'}
                ]
            },
            {
                text: 'C++',
                items: [
                    {text: 'C++', link: '/C++/main'}
                ]
            },
            {
                text: 'Android',
                items: [
                    {text: 'Android', link: '/Android/main'}
                ]
            },
            {
                text: '数据库',
                items: [
                    {text: '数据库', link: '/数据库/main'}
                ]
            },
            {
                text: '小程序',
                items: [
                    {text: '小程序', link: '/小程序/main'}
                ]
            },
            {
                text: '基础',
                items: [
                    {text: '基础', link: '/基础/main'}
                ]
            },
            {
                text: '云服务',
                items: [
                    {text: '云服务', link: '/云服务/main'}
                ]
            },
            {
                text: '架构',
                items: [
                    {text: '架构', link: '/架构/main'}
                ]
            },
            {
                text: '设计模式',
                items: [
                    {text: '设计模式', link: '/设计模式/main'}
                ]
            },
            {
                text: '软件工程',
                items: [
                    {text: '软件工程', link: '/软件工程/main'}
                ]
            },
            {
                text: "软件测试",
                items: [
                    {text: '软件测试', link: '/软件测试/main'}
                ]
            },
            {
                text: '调研',
                items: [
                    {text: '调研', link: '/调研/main'}
                ]
            },
            {
                text: '容器部署',
                items: [
                    {text: '容器部署', link: '/容器部署/main'}
                ]
            }
        ],
        sidebar: {
            '示例': [
                {text: 'markdown examples', link: '/示例/markdown-examples'},
                {text: 'api examples', link: '/示例/api-examples'},
            ]
        },
        sidebarMenuLabel: '目录',
        editLink: {
            pattern: 'https://github.com',
            text: '在 GitHub 上编辑此页'
        },
        socialLinks: [
            {
                icon: 'github',
                link: 'https://github.com/vuejs/vitepress'
            }
        ],
        footer: {
            message: '......',
            copyright: 'Copyright © 2024'
        }
    },
    vite: {
        server: {
            host: "127.0.0.1",
            port: 3000
        }
    }
});

// todo 自动加载侧边栏  nav

export default config
